#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    string s; getline(cin, s);
    for (int i = (int)s.size() - 1; i >= 0; i--) cout << s[i];
    return 0;
}